[INFO] cloning repository https://github.com/codeandplay/rust_in_action_examples
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/codeandplay/rust_in_action_examples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] eeb4d1a40dd3445150dec6122f9a2f2011da65ae
[INFO] checking codeandplay/rust_in_action_examples against master#fdca237d5194bf8a1c9b437ebd2114d1c2ba6195 for pr-97739
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcodeandplay%2Frust_in_action_examples" "/workspace/builds/worker-9/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/codeandplay/rust_in_action_examples on toolchain fdca237d5194bf8a1c9b437ebd2114d1c2ba6195
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/codeandplay/rust_in_action_examples
[INFO] finished tweaking git repo https://github.com/codeandplay/rust_in_action_examples
[INFO] tweaked toml for git repo https://github.com/codeandplay/rust_in_action_examples written to /workspace/builds/worker-9/source/Cargo.toml
[INFO] crate git repo https://github.com/codeandplay/rust_in_action_examples already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] [stdout] 644a6e69d7e34fc2c8e3a650faca5413b867768b3d8d7e237bb20255513c7fa8
[INFO] running `Command { std: "docker" "start" "-a" "644a6e69d7e34fc2c8e3a650faca5413b867768b3d8d7e237bb20255513c7fa8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "644a6e69d7e34fc2c8e3a650faca5413b867768b3d8d7e237bb20255513c7fa8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "644a6e69d7e34fc2c8e3a650faca5413b867768b3d8d7e237bb20255513c7fa8", kill_on_drop: false }`
[INFO] [stdout] 644a6e69d7e34fc2c8e3a650faca5413b867768b3d8d7e237bb20255513c7fa8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+fdca237d5194bf8a1c9b437ebd2114d1c2ba6195" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] abbe22f0f9c3012460b202282b1c2e751c8a7235b8112fab17b8e745857082e9
[INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
[INFO] running `Command { std: "docker" "start" "-a" "abbe22f0f9c3012460b202282b1c2e751c8a7235b8112fab17b8e745857082e9", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.0.1
[INFO] [stderr]    Compiling libc v0.2.88
[INFO] [stderr]    Compiling getrandom v0.1.16
[INFO] [stderr]    Compiling memchr v2.3.4
[INFO] [stderr]     Checking cfg-if v1.0.0
[INFO] [stderr]    Compiling bitflags v1.2.1
[INFO] [stderr]     Checking ppv-lite86 v0.2.10
[INFO] [stderr]     Checking unicode-width v0.1.8
[INFO] [stderr]     Checking once_cell v1.7.2
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]     Checking ansi_term v0.11.0
[INFO] [stderr]     Checking vec_map v0.8.2
[INFO] [stderr]     Checking regex-syntax v0.6.22
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking thread_local v1.1.3
[INFO] [stderr]    Compiling num-traits v0.2.14
[INFO] [stderr]    Compiling num-integer v0.1.44
[INFO] [stderr]    Compiling num-bigint v0.4.0
[INFO] [stderr]    Compiling num-iter v0.1.42
[INFO] [stderr]    Compiling num-rational v0.4.0
[INFO] [stderr]     Checking aho-corasick v0.7.15
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking clap v2.33.3
[INFO] [stderr]     Checking rand_core v0.5.1
[INFO] [stderr]     Checking num-complex v0.4.0
[INFO] [stderr]     Checking rand_chacha v0.2.2
[INFO] [stderr]     Checking rand v0.7.3
[INFO] [stderr]     Checking regex v1.4.3
[INFO] [stderr]     Checking num v0.4.0
[INFO] [stderr]     Checking example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `data`, which is owned by the current function
[INFO] [stdout]  --> src/bin/1_7_data_race.rs:6:19
[INFO] [stdout]   |
[INFO] [stdout] 6 |     thread::spawn(|| {
[INFO] [stdout]   |                   ^^ may outlive borrowed value `data`
[INFO] [stdout] 7 |         data = 500;
[INFO] [stdout]   |         ---- `data` is borrowed here
[INFO] [stdout]   |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]  --> src/bin/1_7_data_race.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 6 | /     thread::spawn(|| {
[INFO] [stdout] 7 | |         data = 500;
[INFO] [stdout] 8 | |     });
[INFO] [stdout]   | |______^
[INFO] [stdout] help: to force the closure to take ownership of `data` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]   |
[INFO] [stdout] 6 |     thread::spawn(move || {
[INFO] [stdout]   |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `data` as mutable more than once at a time
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 6  |       thread::spawn(|| {
[INFO] [stdout]    |       -             -- first mutable borrow occurs here
[INFO] [stdout]    |  _____|
[INFO] [stdout]    | |
[INFO] [stdout] 7  | |         data = 500;
[INFO] [stdout]    | |         ---- first borrow occurs due to use of `data` in closure
[INFO] [stdout] 8  | |     });
[INFO] [stdout]    | |______- argument requires that `data` is borrowed for `'static`
[INFO] [stdout] 9  |
[INFO] [stdout] 10 |       thread::spawn(|| {
[INFO] [stdout]    |                     ^^ second mutable borrow occurs here
[INFO] [stdout] 11 |           data = 1000;
[INFO] [stdout]    |           ---- second borrow occurs due to use of `data` in closure
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `data`, which is owned by the current function
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:19
[INFO] [stdout]    |
[INFO] [stdout] 10 |     thread::spawn(|| {
[INFO] [stdout]    |                   ^^ may outlive borrowed value `data`
[INFO] [stdout] 11 |         data = 1000;
[INFO] [stdout]    |         ---- `data` is borrowed here
[INFO] [stdout]    |
[INFO] [stdout] note: function requires argument type to outlive `'static`
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | /     thread::spawn(|| {
[INFO] [stdout] 11 | |         data = 1000;
[INFO] [stdout] 12 | |     });
[INFO] [stdout]    | |______^
[INFO] [stdout] help: to force the closure to take ownership of `data` (and any other referenced variables), use the `move` keyword
[INFO] [stdout]    |
[INFO] [stdout] 10 |     thread::spawn(move || {
[INFO] [stdout]    |                   ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `data` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/bin/1_7_data_race.rs:14:20
[INFO] [stdout]    |
[INFO] [stdout] 6  |       thread::spawn(|| {
[INFO] [stdout]    |       -             -- mutable borrow occurs here
[INFO] [stdout]    |  _____|
[INFO] [stdout]    | |
[INFO] [stdout] 7  | |         data = 500;
[INFO] [stdout]    | |         ---- first borrow occurs due to use of `data` in closure
[INFO] [stdout] 8  | |     });
[INFO] [stdout]    | |______- argument requires that `data` is borrowed for `'static`
[INFO] [stdout] ...
[INFO] [stdout] 14 |       println!("{}", data);
[INFO] [stdout]    |                      ^^^^ immutable borrow occurs here
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 4 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0373, E0499, E0502.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0373`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `example` due to 5 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: unknown lint: `dead_close`
[INFO] [stdout]  --> src/bin/3_22_implementing_display.rs:3:10
[INFO] [stdout]   |
[INFO] [stdout] 3 | #![allow(dead_close)]
[INFO] [stdout]   |          ^^^^^^^^^^ help: did you mean: `dead_code`
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unknown_lints)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `id` is never read
[INFO] [stdout]  --> src/bin/4_9_return_ownership.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct CubeSat {
[INFO] [stdout]   |        ------- field in this struct
[INFO] [stdout] 5 |     id: u64,
[INFO] [stdout]   |     ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]   = note: `CubeSat` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `sat_id`
[INFO] [stdout]   --> src/bin/4_4_ownership_moved.rs:11:17
[INFO] [stdout]    |
[INFO] [stdout] 11 | fn check_status(sat_id: CubeSat) -> StatusMessage {
[INFO] [stdout]    |                 ^^^^^^ help: if this is intentional, prefix it with an underscore: `_sat_id`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_status`
[INFO] [stdout]   --> src/bin/4_4_ownership_moved.rs:18:9
[INFO] [stdout]    |
[INFO] [stdout] 18 |     let a_status = check_status(sat_a);
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_status`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `a_status`
[INFO] [stdout]   --> src/bin/4_4_ownership_moved.rs:19:9
[INFO] [stdout]    |
[INFO] [stdout] 19 |     let a_status = check_status(sat_a);
[INFO] [stdout]    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_a_status`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: use of moved value: `sat_a`
[INFO] [stdout]   --> src/bin/4_4_ownership_moved.rs:19:33
[INFO] [stdout]    |
[INFO] [stdout] 16 |     let sat_a = CubeSat { id: 0 };
[INFO] [stdout]    |         ----- move occurs because `sat_a` has type `CubeSat`, which does not implement the `Copy` trait
[INFO] [stdout] 17 |
[INFO] [stdout] 18 |     let a_status = check_status(sat_a);
[INFO] [stdout]    |                                 ----- value moved here
[INFO] [stdout] 19 |     let a_status = check_status(sat_a);
[INFO] [stdout]    |                                 ^^^^^ value used here after move
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Open` is never constructed
[INFO] [stdout]   --> src/bin/3_22_implementing_display.rs:11:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | enum FileState {
[INFO] [stdout]    |      --------- variant in this enum
[INFO] [stdout] 11 |     Open,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]    = note: `FileState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `grains`
[INFO] [stdout]   --> src/bin/1_6_dangling_pointer.rs:18:22
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let mut grains: Vec<Cereal> = vec![];
[INFO] [stdout]    |         ---------- move occurs because `grains` has type `Vec<Cereal>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 16 |     drop(grains);
[INFO] [stdout]    |          ------ value moved here
[INFO] [stdout] 17 |
[INFO] [stdout] 18 |     println!("{:?}", grains);
[INFO] [stdout]    |                      ^^^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::format_args_nl` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stdout] warning: field `data` is never read
[INFO] [stdout]   --> src/bin/3_22_implementing_display.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 16 | struct File {
[INFO] [stdout]    |        ---- field in this struct
[INFO] [stdout] 17 |     name: String,
[INFO] [stdout] 18 |     data: Vec<u8>,
[INFO] [stdout]    |     ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `File` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `example` due to 2 previous errors; 3 warnings emitted
[INFO] [stderr] error: could not compile `example` due to 2 previous errors
[INFO] [stdout] warning: 3 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `content` is never read
[INFO] [stdout]   --> src/bin/4_17_avoid_ownership_issue_with_shortlived_variable.rs:16:5
[INFO] [stdout]    |
[INFO] [stdout] 14 | struct Message {
[INFO] [stdout]    |        ------- field in this struct
[INFO] [stdout] 15 |     to: u64,
[INFO] [stdout] 16 |     content: String,
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout]    = note: `Message` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "abbe22f0f9c3012460b202282b1c2e751c8a7235b8112fab17b8e745857082e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "abbe22f0f9c3012460b202282b1c2e751c8a7235b8112fab17b8e745857082e9", kill_on_drop: false }`
[INFO] [stdout] abbe22f0f9c3012460b202282b1c2e751c8a7235b8112fab17b8e745857082e9
